<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
	<meta charset="UTF-8">
	<title>Insert title here</title>
	</head>
	<body>
		<%
			Cookie[] cookies = request.getCookies();
			for(Cookie cookie : cookies){
				if(cookie.getName().equals("userName")){
					out.write("欢迎回来！"+cookie.getValue());
				}
			}
		%>
		<a href="/myjsp002/logout">退出登录</a>
	</body>
</html>